package cn.tedu.csmallproductzxj.mapper;

import cn.tedu.csmallproductzxj.pojo.entity.Spu;
import cn.tedu.csmallproductzxj.pojo.vo.SpuListVO;
import cn.tedu.csmallproductzxj.pojo.vo.SpuStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SpuMapper {

    int insertSpu(Spu spu);

    int deleteSpuById(long l);

    int count();

    SpuStandardVO getStandardById(Long id);

    List<SpuListVO> list();

    int insertBatch(List<Spu> spu);

    int deleteByIds(Long[] idList);

    int update(Spu spu);
}
